﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
    public partial class Form2 : Form
    {
        ArrayList layanan = new ArrayList();

        public Form2()
        {
            InitializeComponent();
        }

        public Form2(string _consumer)
        {
            InitializeComponent();

            lblConsumer.Text = _consumer;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form3 f = new Form3();
            f.Show(this);
        }

        public void addWork(string _Layanan, string _Pelayan)
        {
            //Label1 no -> 4,31
            //Label1 layanan -> 32,31
            //Label1 pelayan -> 105,31
            //Label1 status -> 174,31

            //Label2 no -> 4,60
            //Label2 layanan -> 32,60
            //Label2 pelayan -> 105,60
            //Label2 status -> 174,60

            Label lblNew1 = new Label();
            lblNew1.Text = "1";
            lblNew1.Location = new Point(4, 31);
            lblNew1.Size = new Size(13, 13);
            Label lblNew2 = new Label();
            lblNew2.Text = _Layanan;
            lblNew2.Location = new Point(32, 31);
            lblNew2.Size = new Size(63, 13);
            Label lblNew3 = new Label();
            lblNew3.Text = _Pelayan;
            lblNew3.Location = new Point(105, 31);
            lblNew3.Size = new Size(63, 13);
            Label lblNew4 = new Label();
            lblNew4.Text = "Sedang";
            lblNew4.Location = new Point(174, 31);
            lblNew4.Size = new Size(58, 13);
            panel1.Controls.Add(lblNew1);
            panel1.Controls.Add(lblNew2);
            panel1.Controls.Add(lblNew3);
            panel1.Controls.Add(lblNew4);
        }

    }
}
